package com.liugui.vueblog.controller;


import com.liugui.vueblog.bean.R;
import com.liugui.vueblog.service.UserService;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 'vueblog2.totalpvview' is not BASE TABLE 前端控制器
 * </p>
 *
 * @author lg
 * @since 2020-07-22
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @GetMapping("/all")
    public R findAllUser(){
        return new R<>().success("查询成功",userService.list());
    }
}

